package cn.test;

import cn.sell.SellTicket;

/**
 * 卖票模拟 三个窗口
 */
public class ThreadSellTicket {
    public static void main(String[] args) {
        SellTicket sellTicket=new SellTicket();//线程
        Thread t1=new Thread(sellTicket,"窗口1");
        Thread t2=new Thread(sellTicket,"窗口2");
        Thread t3=new Thread(sellTicket,"窗口3");

        t1.start();
        t2.start();
        t3.start();
    }
}
